package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName t_organization
 */
@TableName(value ="t_organization")
@Data
public class TOrganization implements Serializable {

    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    private String name;

    private String nickname;

    private Integer typeid;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date foundtime;

    private Integer unittype;

    private String location;

    private Integer unitid;

    private Integer pid;

    @TableField(exist = false)
    private String pname;

    private Integer status;


    @TableField(exist = false)
    private List<TOrganization>childlist;

    private Integer sysdeptid;

    private static final long serialVersionUID = 1L;
}